package com.pingan.haofang.searchcloud.web.metadata.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 通过RPC生成索引字段form
 *
 * @author baojie371
 * @date 17/5/12
 * @since 1.0.0
 */
@ApiModel(description = "通过RPC生成索引字段form")
public class MetadataFieldsGenerateForm {

    @ApiModelProperty(value = "rpc的URL")
    @NotBlank(message = "metadata.field.generator.rpcUrl.illegal")
    private String rpcUrl;

    @ApiModelProperty(value = "rpc对应方法名")
    @NotBlank(message = "metadata.field.generator.rpcMethod.illegal")
    private String rpcMethod;

    public String getRpcUrl() {
        return rpcUrl;
    }

    public void setRpcUrl(String rpcUrl) {
        this.rpcUrl = rpcUrl;
    }

    public String getRpcMethod() {
        return rpcMethod;
    }

    public void setRpcMethod(String rpcMethod) {
        this.rpcMethod = rpcMethod;
    }
}
